﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="notaDebito.aspx.cs" Inherits="notaDebito" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContenedorCentral" Runat="Server">

  <div class = "centrado">
     
       <div id="degradado"> 
           <div id= "titulo" >
           <p>
            <asp:Label ID="fac" runat="server" Text="Nota de Débito Cliente" ></asp:Label>
           </p>
      
          </div>
     </div>
   
   <table>
      <tr>
          <td style="width: 13%" , align="right" >
              <asp:Label ID="numero" runat="server" Text="Nº: "></asp:Label>  
          </td>
          <td colspan = "2">
             <asp:TextBox ID="numTex" runat="server" Width="53%"></asp:TextBox>
          </td>
          <td style="width: 25%" , align="right">
             <asp:Label ID="fecha" runat="server" Text="Fecha: "></asp:Label>
          </td>
          <td colspan = "2">
             <asp:TextBox ID="fechaTex" runat="server" Width="48%" BackColor="#FF9933" 
                  ForeColor="White" ReadOnly="True"></asp:TextBox>
          </td>
      </tr>
      <tr>
         <td style="width: 13%" , align="right">
            <asp:Label ID="nombre" runat="server" Text="Cliente:"></asp:Label>
         </td>
         <td colspan = "2">
            <asp:TextBox ID="nombreTex" runat="server" Width="74%"></asp:TextBox>
            <asp:ImageButton ID="buscar1" runat="server" ImageUrl="~/images/lupa.png" 
                 Height="22px" Width="25px" onclick="buscar1_Click" />
         </td>
         <td style="width: 25%" , align="right">
            <asp:Label ID="estado" runat="server" Text="Estado:"></asp:Label>
         </td>
         <td colspan = "2">
             <asp:TextBox ID="rucTex" runat="server" Width="20%" Height="20px"></asp:TextBox>
         </td>
      </tr>
      <tr>
        <td colspan = "6" align ="left">
           <br />
           <br />
            
         
        
             <asp:Label ID="Label1" runat="server" Text="Factura de Ventas: "></asp:Label>
               <asp:TextBox ID="cuotaTex" runat="server" Width="20%"></asp:TextBox>
              <asp:ImageButton ID="bfacturas" runat="server" 
                ImageUrl="~/images/lupa.png" Height="22px" Width="25px" 
                onclick="buscarFactura_Click" />
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
              <asp:Label ID="cuotas" runat="server" Text="Cuota :"></asp:Label>
              <asp:TextBox ID="facturaTex" runat="server" Width="20%"></asp:TextBox>
              <asp:ImageButton ID="buscarFactura" runat="server" 
                ImageUrl="~/images/lupa.png" Height="22px" Width="25px" 
                onclick="buscarFactura_Click" />
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
             
             
        </td>
        
            
       
      </tr>
      <tr>
      <td colspan = "6" align ="left">
       <asp:Label ID="motivo" runat="server" Text="Motivo:"></asp:Label>
         
              <asp:TextBox ID="motivoTex" runat="server" Width="20%"></asp:TextBox>
              <asp:ImageButton ID="ImageButton2" runat="server" 
                ImageUrl="~/images/lupa.png" Height="22px" Width="25px" 
                onclick="ImageButton2_Click" />
              <asp:ImageButton ID="AgregarProducto" runat="server" 
                ImageUrl="~/images/filesave.png" 
                Style="height: 20px" Width="22px" />
      </td>
      </tr>
      <tr>
       <td colspan = "6" align="center" >
           <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" 
               GridLines="None">
               <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
               <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
               <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
               <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
               <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
               <AlternatingRowStyle BackColor="White" />
           </asp:GridView>
      
           <br />
           <br />
       </td>
      </tr>
      <tr>
         <td style="width: 13%">
              <asp:Label ID="excentas" runat="server" Text="Excentas:"></asp:Label>
         </td>
         <td style="width: 19%">
              <asp:TextBox ID="excTex" runat="server" Width="75%" BackColor="#FF9933" 
                ReadOnly="True"></asp:TextBox>
         </td>
         <td style="width: 10%">
            <asp:Label ID="iva_5" runat="server" Text="Iva 5%:"></asp:Label>
         </td>
         <td  style="width: 25%">
            <asp:TextBox ID="iv5Tex" runat="server" Width="71%" BackColor="#FF9933" 
                ReadOnly="True"></asp:TextBox>
         </td>
         <td  style="width: 13%">
             <asp:Label ID="iva_10" runat="server" Text="Iva 10%:"></asp:Label>
         </td>
         <td  style="width: 30%">
             <asp:TextBox ID="iv1Tex" runat="server" Width="75%" BackColor="#FF9933" 
                ReadOnly="True"></asp:TextBox>
         </td>
      </tr>
      <tr>
         <td colspan="6" align ="left"l>
              <asp:Label ID="total" runat="server" Text="Total Débito: "></asp:Label>       
              <asp:TextBox ID="totalTex" runat="server" BackColor="#FF9933" ReadOnly="True"></asp:TextBox>
         </td>
      </tr>
      <tr>
         <td  colspan="6" align ="right" >
           <br />
           <br />
             <asp:ImageButton ID="imprimir" runat="server" Height="54px" 
                ImageUrl="~/images/imprimir.jpg" Width="65px" />
             <asp:ImageButton ID="guardar" runat="server" Height="53px" 
                ImageUrl="~/images/guardar.jpg" Width="59px" />
             <asp:ImageButton ID="cancelar" runat="server" 
                ImageUrl="~/images/cancelar.jpeg" Height="55px" Width="62px" />
         </td>
      </tr>
   </table>
     
   </div>
    <SCRIPT LANGUAGE="JavaScript">
      
    function popUpClientes() {
        window.open('Gridviews/clientesGrid.aspx', '', 'center=yes,resizable=yes,scrollbars=yes');
    }
    function popUpFacturasCuotas() {
        window.open('Gridviews/facturasCuotas.aspx', '', 'center=yes,resizable=yes,scrollbars=yes');
    }
    function popUpMotivos() {
        window.open('Gridviews/motivo.aspx', '', 'center=yes,resizable=yes,scrollbars=yes');
    }
    function popUpFacturas() {
        window.open('Gridviews/facturas.aspx', '', 'center=yes,resizable=yes,scrollbars=yes');
    }
    function retornarCod_Cliente(values) {
        var cliente = $get('<%=this.nombreTex.ClientID%>');
        cliente.value = values;
    }
    function retornarFacturas(values) {
        var facturas = $get('<%=this.facturaTex.ClientID%>');
        facturas.value = values;
    }

    function retornarMotivo(values) {
        var motivos = $get('<%=this.motivoTex.ClientID%>');
        motivos.value = values;
    }
    function retornarFactura(values) {
        var fac = $get('<%=this.cuotaTex.ClientID%>');
        fac.value = values;
    }
   </SCRIPT>
   
</asp:Content>

